package com.hkzhao.reportingsystem.service;

import com.hkzhao.reportingsystem.common.api.CommonResult;
import com.hkzhao.reportingsystem.dto.CaseDto;
import com.hkzhao.reportingsystem.mbg.model.Case;
import com.hkzhao.reportingsystem.mbg.model.Doctor;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface MangerService {
    String  login(String username,String password);
    CommonResult addNews(String title, String text, HttpServletRequest request);
    @Transactional
    CommonResult verifySuccess(String username);
    CommonResult verifySuccessSendEmail(String username);
    CommonResult verifyFailed(String username);
    CommonResult verifyFailedSendEamil(String username);
    List<Doctor> getNeedVerifyDoctor(int pageNum, int pageSize);
    List<CaseDto> getAllAuthCase(int pageNum,int pageSize);
    @Transactional
    CommonResult authCaseSuccessOrFailed(String case_token_id,String target);
    CommonResult sendAuthCaseInformEmail(String[] username_caseid_state);
}
